home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
pctchnqs
/
1992
/
number1
/
fileview.chg
< prev
next >
Wrap
Text File
|
1992-01-05
|
922b
|
39 lines
...
// PRFILE CHANGE: removed #include "tvcmds.h".
#include "fileview.h"
// PRFILE CHANGE: added #include "prfile.h".
#include "prfile.h"
const char * const TFileViewer::name = "TFileViewer";
TFileViewer::TFileViewer( const TRect& bounds,
TScrollBar *aHScrollBar,
TScrollBar *aVScrollBar,
const char *aFileName) :
TScroller( bounds, aHScrollBar, aVScrollBar )
{
...
// PRFILE CHANGE: added enable of cmPrintFile.
if (!filesOpen++)
enableCommand(cmPrintFile);
}
TFileViewer::~TFileViewer()
{
// PRFILE CHANGE: added disable of cmPrintFile.
if (!--filesOpen)
disableCommand(cmPrintFile);
...
}
...
TFileWindow::TFileWindow( const char *fileName ) :
// PRFILE CHANGE: changed winNumber++ to ++winNumber (bug).
TWindow( TProgram::deskTop->getExtent(), fileName, ++winNumber),
TWindowInit( &TFileWindow::initFrame )
{
...
}